<?php
include_once 'data_access.php';
$database_connection=new database_access();
$database_connection->connect();

for ($flag=1;$flag<=10;$flag++){
    if($flag==1){
    $query="insert into building (building_id,building_periority,building_capacity,building_resident_kind) values ('1','1','10','ذكر')";   
    mysql_query($query) or die (mysql_error());    
    }else if($flag==2){
    $query="insert into building (building_id,building_periority,building_capacity,building_resident_kind) values ('2','1','20','انثى')";   
    mysql_query($query) or die (mysql_error());      
    }else if($flag==3){
    $query="insert into building (building_id,building_periority,building_capacity,building_resident_kind) values ('3','2','20','ذكر')";   
    mysql_query($query) or die (mysql_error());  
    }
    else if($flag==4){
    $query="insert into building (building_id,building_periority,building_capacity,building_resident_kind) values ('4','2','20','انثى')";   
    mysql_query($query) or die (mysql_error());    
        
    }else if($flag==5){
    $query="insert into building (building_id,building_periority,building_capacity,building_resident_kind) values ('5','3','20','ذكر')";   
    mysql_query($query) or die (mysql_error());  
    }else if($flag==6){
    $query="insert into building (building_id,building_periority,building_capacity,building_resident_kind) values ('6','3','20','انثى')";   
    mysql_query($query) or die (mysql_error());  
    }else if($flag==7){
    $query="insert into building (building_id,building_periority,building_capacity,building_resident_kind) values ('7','4','20','ذكر')";   
    mysql_query($query) or die (mysql_error());  
    }else if($flag==8){
    $query="insert into building (building_id,building_periority,building_capacity,building_resident_kind) values ('8','4','20','انثى')";   
    mysql_query($query) or die (mysql_error());  
    }
    else if($flag==9){
    $query="insert into building (building_id,building_periority,building_capacity,building_resident_kind) values ('9','5','20','ذكر')";   
    mysql_query($query) or die (mysql_error());  
    }
else if($flag==10){
    $query="insert into building (building_id,building_periority,building_capacity,building_resident_kind) values ('10','5','20','انثى')";   
    mysql_query($query) or die (mysql_error());  
    }
    
}





?>
